<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Banners extends Model
{
    use HasFactory;

    protected $fillable = ["index", "code", "link", "img_url", "platform", "page_id", "title", "title_en", "description", "description_en"];
    public function page()
    {
        return $this->belongsTo(Pages::class, 'page_id', 'id');
    }
}
